﻿namespace Model.Result
{
    /// <summary>
    /// 分页数据包装类
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class RM_PageReturn<T>
    {
        /// <summary>
        /// 总条数
        /// </summary>
        public int TotalCount { get; set; }

        /// <summary>
        /// 数据
        /// </summary>
        public List<T> Datas { get; set; } = new List<T>();

        /// <summary>
        /// 每页条数
        /// </summary>
        public int PageSize { get; set; }

        /// <summary>
        /// 页码
        /// </summary>
        public int PageNo { get; set; }
    }

    /// <summary>
    ///
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class RM_PageReturnT<T> : RM_PageReturn<T>
    {
        /// <summary>
        ///
        /// </summary>
        public int RealCount { get; set; }

        /// <summary>
        ///
        /// </summary>
        public int VirtualCount { get; set; }
    }
}